package com.wzy.springObserver;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Service;

/**
 * @Author: wzy
 * @Date: 2022/10/11/13:08
 * @Description:
 */
@Service
@Slf4j
public class CustomerLeaveMessageEventService implements ApplicationListener<CustomerLeaveMessageEvent> {
    @Override
    public void onApplicationEvent(CustomerLeaveMessageEvent event) {
        log.info("留言->{}", event.toString());
    }
}
